package com.brush.pig.service;

import com.brush.pig.domain.IotPig;
import com.baomidou.mybatisplus.extension.service.IService;
import com.brush.pig.domain.req.pig.PigAddReq;
import com.brush.pig.domain.req.pig.PigEditReq;
import com.brush.pig.domain.req.pig.PigQueryReq;
import com.brush.pig.domain.resp.pig.PigResp;
import com.github.pagehelper.PageInfo;
import com.brush.pig.domain.req.sow.SowQueryInformationReq;
import com.brush.pig.domain.req.sow.SowUpdateEarCodeReq;
import com.brush.pig.domain.resp.sow.SowQueryInformationResp;
import com.brush.pig.domain.resp.sow.SowQueryTransferResp;
import com.github.pagehelper.PageInfo;

/**
* @author ckq
* @description 针对表【iot_pig(猪只信息)】的数据库操作Service
* @createDate 2024-11-12 17:27:27
*/
public interface IotPigService extends IService<IotPig> {

    PageInfo<PigResp> paginationQuery(PigQueryReq req);

    PigResp findById(Long id);

    boolean add(PigAddReq req);

    boolean edit(PigEditReq req);
    PageInfo<SowQueryInformationResp> getInformation(SowQueryInformationReq req);

    boolean updateSowById(SowUpdateEarCodeReq req);

    PageInfo<SowQueryTransferResp> getTransfer(SowQueryInformationReq req);
}
